const router = require("koa-router")();
const { ObjectId } = require("mongodb");
const main = require("../models")
router.get("/detail/:id",async ctx=>{
    var {id} = ctx.params
    var table = await main("list215");
    var lists = await table.find({_id:ObjectId(id)}).toArray()
    console.log(lists);
    ctx.body = lists
    console.log(ctx.params);
})
module.exports = router;